package com.cys.dm.vo.dmes;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Document(indexName = "dm")
public class DmItemRowsEs {
    @Id
    private Long id;

    @Field(value = "itemname",
            type = FieldType.Text,
            analyzer = "ik_max_word")
    private String itemName;

    @Field(value = "imgUrl",type = FieldType.Keyword)
    private String imgUrl;
    @Field(value = "areaname",type = FieldType.Keyword)
    private String areaName;
    @Field(value = "areaid",type = FieldType.Keyword)
    private Long areaid;
    @Field(value = "abstractmessage",type = FieldType.Keyword)
    private String abstractMessage;
    @Field(value = "starttime",type = FieldType.Date,format = DateFormat.date_optional_time)
    private String startTime;
    @Field(value = "endtime",type = FieldType.Date,format = DateFormat.date_optional_time)
    private String endTime;
    @Field(value = "minprice",type = FieldType.Keyword)
    private double minPrice;
    @Field(value = "maxprice",type = FieldType.Keyword)
    private double maxPrice;

    @Field(value = "address",type = FieldType.Keyword)
    private String address;
    @Field(value = "latitude",type = FieldType.Keyword)
    private String latitude;
    @Field(value = "longitude",type = FieldType.Keyword)
    private String longitude;

    @Field(value = "itemtype1id",type = FieldType.Keyword)
    private Long itemType1Id;
    @Field(value = "itemtype2id",type = FieldType.Keyword)
    private Long itemType2Id;
    @Field(value = "isrecommend",type = FieldType.Keyword)
    private Long isRecommend;

    public Long getAreaid() {
        return areaid;
    }

    public void setAreaid(Long areaid) {
        this.areaid = areaid;
    }

    public Long getItemType1Id() {
        return itemType1Id;
    }

    public void setItemType1Id(Long itemType1Id) {
        this.itemType1Id = itemType1Id;
    }

    public Long getItemType2Id() {
        return itemType2Id;
    }

    public void setItemType2Id(Long itemType2Id) {
        this.itemType2Id = itemType2Id;
    }

    public Long getIsRecommend() {
        return isRecommend;
    }

    public void setIsRecommend(Long isRecommend) {
        this.isRecommend = isRecommend;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getAbstractMessage() {
        return abstractMessage;
    }

    public void setAbstractMessage(String abstractMessage) {
        this.abstractMessage = abstractMessage;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public double getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(double minPrice) {
        this.minPrice = minPrice;
    }

    public double getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(double maxPrice) {
        this.maxPrice = maxPrice;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }
}
